<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	
	String myImageText = request.getParameter("kaptcha");
	String imageText = (String)session.getAttribute(com.google.code.kaptcha.Constants.KAPTCHA_SESSION_KEY);
	
	if(!myImageText.isEmpty() && myImageText.equals(imageText))
		out.print("验证通过！<br />");
	else
		out.print("验证失败！<br />");	
	out.print("你输入的字符：" + myImageText + ",验证码字符：" + imageText);	
%>